package eu.irreality.dai.gameplay.actions.movement;

import eu.irreality.dai.util.Position;
import eu.irreality.dai.world.gen.LevelGenerator;
import eu.irreality.dai.world.level.Level;

public class StandardPassabilityCriterion implements PassabilityCriterion
{

    public boolean isPassable(Level l, Position p)
    {
	// TODO WALL should not be on class DungeonGenerator.
	return !l.get(p.getRow(), p.getCol()).contains(LevelGenerator.WALL)
		&& !l.get(p.getRow(), p.getCol()).contains(
			LevelGenerator.CLOSED_DOOR);

    }

}
